import { createApp } from "vue";
import { createPinia } from "pinia";
import piniaPluginPersist from "pinia-plugin-persist";
import App from "./App.vue";
import router from "./router";
import * as echarts from "echarts";
// import * as directives from "./directives";
import countRun from "./directives/countRun";

import "normalize.css/normalize.css";
import "element-plus/dist/index.css";

const app = createApp(App);
const store = createPinia();
store.use(piniaPluginPersist);
app.use(router);
app.use(store);
app.mount("#app");
app.directive("countRun", countRun);

// 添加全局配置
app.config.globalProperties.$echarts = echarts;
